<%-- 
    Document   : jstl3
    Created on : 2014/8/18, 下午 02:15:53
    Author     : Benny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="x" value="5" />
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSTL3</title>
    </head>
    <body>
        <h1>-----JSTL3-----</h1>
        <hr>
        <c:choose>
            <c:when test="${x>5}">
                X>5(大於)
            </c:when>
            <c:when test="${x<5}">
                X<5(小於)
            </c:when>
            <c:otherwise>
                X=5(等於)
            </c:otherwise>
        </c:choose>
    </body>
</html>
